package com.banmoon.proxy.cglibproxy;

public class CglibProxyMain {

    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        Teacher teacherProxy = (Teacher) new CglibProxyFactory(teacher).getProxyInstance();
        System.out.println("teacherProxy：" + teacherProxy.getClass());
        teacherProxy.teach();
    }
}
